﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Economo.Services.EntitiesConversion;

namespace Economo.Services.BusinessEntities
{
    public class CreditCard 
    {
        private byte _bankId;
        private byte _id;
        private string _description;
        private Int64? _cardNumber;
        private DateTime? _expiration;
        private Int16? _securityCode;
        private byte[] _picture;

        [MappingSettingsAttribute(true, "BankId", MappingSettingsAttribute.MappingType.Simple)]
        public byte BankId
        {
            get
            {
                return _bankId;
            }
            set
            {
                _bankId = value;
            }
        }
        [MappingSettingsAttribute(true, "Id", MappingSettingsAttribute.MappingType.Simple)]
        public Byte Id
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }

        [MappingSettingsAttribute(true, "Description", MappingSettingsAttribute.MappingType.Simple)]
        public String Description
        {
            get
            {
                return _description;
            }
            set
            {
                _description = value;
            }
        }

        [MappingSettingsAttribute(false, "CardNumber", MappingSettingsAttribute.MappingType.Simple)]
        public Int64? CardNumber
        {
            get
            {
                return _cardNumber;
            }
            set
            {
                _cardNumber = value;
            }
        }

        [MappingSettingsAttribute(false, "Expiration", MappingSettingsAttribute.MappingType.Simple)]
        public DateTime? Expiration
        {
            get
            {
                return _expiration;
            }
            set
            {
                _expiration = value;
            }
        }
        [MappingSettingsAttribute(false, "SecurityCode", MappingSettingsAttribute.MappingType.Simple)]
        public Int16? SecurityCode
        {
            get
            {
                return _securityCode;
            }
            set
            {
                _securityCode = value;
            }
        }
        [MappingSettingsAttribute(false, "Picture", MappingSettingsAttribute.MappingType.Simple)]
        public byte[] Picture
        {
            get
            {
                return _picture;
            }
            set
            {
                _picture = value;
            }

        }
    }
}
